package com.hjwoo.app.been;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by yangchuan on 2016/5/12.
 */
public class OrdersObject implements Serializable
{
    private String                maximumAmountOfCredit;
    private String                monthlyInterest;
    private String                createdDate;
    private CauseOfFailure        causeOfFailure;
    private String                loanAmount;
    private String                commissionRate;
    private String                address;
    private String                protectionEndTime;
    private String                serialNumber;
    private String                district;
    private String                orientation;
    private String                area;
    private String                modifiedDate;
    private String                cellphone;
    private String                maritalStatus;
    private String                actualAmountOfCredit;
    private String                firstMortgageAmount;
    private SpecialFactors        specialFactors;
    //    private String                specialFactors;
    private String                building;
    private String                fullName;
    private City                city;
    //    private String                city;
    private String                requestedAmount;
    private HouseType                houseType;
    //    private String                houseType;
    private String                commission;
    private InterestPaymentMethod interestPaymentMethod;
    private String                roomNumber;
    private String                propertySerialNumber;
    private String                protectionStartTime;
    private String                secondMortgageAmount;
    private String                status;
    //    private String                assetType;
    private String                totalFloor;
    private String                floor;
    private MortgageType          mortgageType;
    //    private String                mortgageType;
    private String                loanDuration;
    private String                numberOfLivingRoom;
    private String                memo;
    private String                idNumber;
    private Lender                lender;
    private ArrayList<Contacts>  contacts;
    private Stage                stage;

    @Override
    public String toString() {
        return "OrdersObject{" +
                "maximumAmountOfCredit='" + maximumAmountOfCredit + '\'' +
                ", monthlyInterest='" + monthlyInterest + '\'' +
                ", createdDate='" + createdDate + '\'' +
                ", causeOfFailure=" + causeOfFailure +
                ", loanAmount='" + loanAmount + '\'' +
                ", commissionRate='" + commissionRate + '\'' +
                ", address='" + address + '\'' +
                ", protectionEndTime='" + protectionEndTime + '\'' +
                ", serialNumber='" + serialNumber + '\'' +
                ", district='" + district + '\'' +
                ", orientation='" + orientation + '\'' +
                ", area='" + area + '\'' +
                ", modifiedDate='" + modifiedDate + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", maritalStatus='" + maritalStatus + '\'' +
                ", actualAmountOfCredit='" + actualAmountOfCredit + '\'' +
                ", firstMortgageAmount='" + firstMortgageAmount + '\'' +
                ", specialFactors=" + specialFactors +
                ", building='" + building + '\'' +
                ", fullName='" + fullName + '\'' +
                ", city=" + city +
                ", requestedAmount='" + requestedAmount + '\'' +
                ", houseType=" + houseType +
                ", commission='" + commission + '\'' +
                ", interestPaymentMethod=" + interestPaymentMethod +
                ", roomNumber='" + roomNumber + '\'' +
                ", propertySerialNumber='" + propertySerialNumber + '\'' +
                ", protectionStartTime='" + protectionStartTime + '\'' +
                ", secondMortgageAmount='" + secondMortgageAmount + '\'' +
                ", status='" + status + '\'' +
                ", totalFloor='" + totalFloor + '\'' +
                ", floor='" + floor + '\'' +
                ", mortgageType=" + mortgageType +
                ", loanDuration='" + loanDuration + '\'' +
                ", numberOfLivingRoom='" + numberOfLivingRoom + '\'' +
                ", memo='" + memo + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", lender=" + lender +
                ", contacts=" + contacts +
                ", stage=" + stage +
                '}';
    }

    public Lender getLender()
    {
        return lender;
    }

    public SpecialFactors getSpecialFactors() {
        return specialFactors;
    }

    public void setSpecialFactors(SpecialFactors specialFactors) {
        this.specialFactors = specialFactors;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public HouseType getHouseType() {
        return houseType;
    }

    public void setHouseType(HouseType houseType) {
        this.houseType = houseType;
    }

    public MortgageType getMortgageType() {
        return mortgageType;
    }

    public void setMortgageType(MortgageType mortgageType) {
        this.mortgageType = mortgageType;
    }

    public void setLender(Lender lender)
    {
        this.lender = lender;
    }

    public String getMaximumAmountOfCredit()
    {
        return maximumAmountOfCredit;
    }

    public void setMaximumAmountOfCredit(String maximumAmountOfCredit)
    {
        this.maximumAmountOfCredit = maximumAmountOfCredit;
    }

    public String getMonthlyInterest()
    {
        return monthlyInterest;
    }

    public void setMonthlyInterest(String monthlyInterest)
    {
        this.monthlyInterest = monthlyInterest;
    }

    public String getCreatedDate()
    {
        return createdDate;
    }

    public void setCreatedDate(String createdDate)
    {
        this.createdDate = createdDate;
    }

    public CauseOfFailure getCauseOfFailure()
    {
        return causeOfFailure;
    }

    public void setCauseOfFailure(CauseOfFailure causeOfFailure)
    {
        this.causeOfFailure = causeOfFailure;
    }

    public String getLoanAmount()
    {
        return loanAmount;
    }

    public void setLoanAmount(String loanAmount)
    {
        this.loanAmount = loanAmount;
    }

    public String getCommissionRate()
    {
        return commissionRate;
    }

    public void setCommissionRate(String commissionRate)
    {
        this.commissionRate = commissionRate;
    }

    public String getAddress()
    {
        return address;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getProtectionEndTime()
    {
        return protectionEndTime;
    }

    public void setProtectionEndTime(String protectionEndTime)
    {
        this.protectionEndTime = protectionEndTime;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getDistrict()
    {
        return district;
    }

    public void setDistrict(String district)
    {
        this.district = district;
    }

    public String getOrientation()
    {
        return orientation;
    }

    public void setOrientation(String orientation)
    {
        this.orientation = orientation;
    }

    public String getArea()
    {
        return area;
    }

    public void setArea(String area)
    {
        this.area = area;
    }

    public String getModifiedDate()
    {
        return modifiedDate;
    }

    public void setModifiedDate(String modifiedDate)
    {
        this.modifiedDate = modifiedDate;
    }

    public String getCellphone()
    {
        return cellphone;
    }

    public void setCellphone(String cellphone)
    {
        this.cellphone = cellphone;
    }

    public String getMaritalStatus()
    {
        return maritalStatus;
    }

    public void setMaritalStatus(String maritalStatus)
    {
        this.maritalStatus = maritalStatus;
    }

    public String getActualAmountOfCredit()
    {
        return actualAmountOfCredit;
    }

    public void setActualAmountOfCredit(String actualAmountOfCredit)
    {
        this.actualAmountOfCredit = actualAmountOfCredit;
    }

    public String getFirstMortgageAmount()
    {
        return firstMortgageAmount;
    }

    public void setFirstMortgageAmount(String firstMortgageAmount)
    {
        this.firstMortgageAmount = firstMortgageAmount;
    }

    public static class SpecialFactors implements Serializable
    {
        public String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
//    public String getSpecialFactors()
//    {
//        return specialFactors;
//    }
//
//    public void setSpecialFactors(String specialFactors)
//    {
//        this.specialFactors = specialFactors;
//    }

    public String getBuilding()
    {
        return building;
    }

    public void setBuilding(String building)
    {
        this.building = building;
    }

    public String getFullName()
    {
        return fullName;
    }

    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public static class City implements Serializable {
        public String name;
        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
//    public String getCity()
//    {
//        return city;
//    }
//
//    public void setCity(String city)
//    {
//        this.city = city;
//    }

    public String getRequestedAmount()
    {
        return requestedAmount;
    }

    public void setRequestedAmount(String requestedAmount)
    {
        this.requestedAmount = requestedAmount;
    }

    public static class HouseType implements Serializable
    {
        public String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
//    public String getHouseType()
//    {
//        return houseType;
//    }
//
//    public void setHouseType(String houseType)
//    {
//        this.houseType = houseType;
//    }

    public String getCommission()
    {
        return commission;
    }

    public void setCommission(String commission)
    {
        this.commission = commission;
    }

    public InterestPaymentMethod getInterestPaymentMethod()
    {
        return interestPaymentMethod;
    }

    public void setInterestPaymentMethod(InterestPaymentMethod interestPaymentMethod)
    {
        this.interestPaymentMethod = interestPaymentMethod;
    }

    public String getRoomNumber()
    {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber)
    {
        this.roomNumber = roomNumber;
    }

    public String getPropertySerialNumber()
    {
        return propertySerialNumber;
    }

    public void setPropertySerialNumber(String propertySerialNumber)
    {
        this.propertySerialNumber = propertySerialNumber;
    }

    public String getProtectionStartTime()
    {
        return protectionStartTime;
    }

    public void setProtectionStartTime(String protectionStartTime)
    {
        this.protectionStartTime = protectionStartTime;
    }

    public String getSecondMortgageAmount()
    {
        return secondMortgageAmount;
    }

    public void setSecondMortgageAmount(String secondMortgageAmount)
    {
        this.secondMortgageAmount = secondMortgageAmount;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

//    public String getAssetType()
//    {
//        return assetType;
//    }
//
//    public void setAssetType(String assetType)
//    {
//        this.assetType = assetType;
//    }

    public String getTotalFloor()
    {
        return totalFloor;
    }

    public void setTotalFloor(String totalFloor)
    {
        this.totalFloor = totalFloor;
    }

    public String getFloor()
    {
        return floor;
    }

    public void setFloor(String floor)
    {
        this.floor = floor;
    }

    public static class Lender implements Serializable
    {
        public Level level;

        @Override
        public String toString()
        {
            return "Lender{" +
                    "level=" + level +
                    '}';
        }

        public Level getLevel()
        {
            return level;
        }

        public void setLevel(Level level)
        {
            this.level = level;
        }
    }
//    public String getMortgageType()
//    {
//        return mortgageType;
//    }
//
//    public void setMortgageType(String mortgageType)
//    {
//        this.mortgageType = mortgageType;
//    }

    public String getLoanDuration()
    {
        return loanDuration;
    }

    public void setLoanDuration(String loanDuration)
    {
        this.loanDuration = loanDuration;
    }

    public String getNumberOfLivingRoom()
    {
        return numberOfLivingRoom;
    }

    public void setNumberOfLivingRoom(String numberOfLivingRoom)
    {
        this.numberOfLivingRoom = numberOfLivingRoom;
    }

    public String getMemo()
    {
        return memo;
    }

    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getIdNumber()
    {
        return idNumber;
    }

    public void setIdNumber(String idNumber)
    {
        this.idNumber = idNumber;
    }

    public Stage getStage()
    {
        return stage;
    }

    public void setStage(Stage stage)
    {
        this.stage = stage;
    }

    public ArrayList<Contacts> getContacts()
    {
        return contacts;
    }

    public void setContacts(ArrayList<Contacts> contacts)
    {
        this.contacts = contacts;
    }

    public static class CauseOfFailure implements Serializable
    {
        public String name;

        @Override
        public String toString()
        {
            return "CauseOfFailure{" +
                    "name='" + name + '\'' +
                    '}';
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }
    }

    public static class InterestPaymentMethod implements Serializable
    {
        public String name;

        @Override
        public String toString()
        {
            return "InterestPaymentMethod{" +
                    "name='" + name + '\'' +
                    '}';
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }
    }

    public static class MortgageType implements Serializable
    {
        public String name;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public static class Level implements Serializable
    {
        public String name;
        public String description;

        @Override
        public String toString()
        {
            return "Level{" +
                    "name='" + name + '\'' +
                    ", description='" + description + '\'' +
                    '}';
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }

        public String getDescription()
        {
            return description;
        }

        public void setDescription(String description)
        {
            this.description = description;
        }
    }

    public static class Stage implements Serializable
    {
        public String id;
        public String code;
        public String name;

        @Override
        public String toString()
        {
            return "Stage{" +
                    "id='" + id + '\'' +
                    ", code='" + code + '\'' +
                    ", name='" + name + '\'' +
                    '}';
        }

        public String getId()
        {
            return id;
        }

        public void setId(String id)
        {
            this.id = id;
        }

        public String getCode()
        {
            return code;
        }

        public void setCode(String code)
        {
            this.code = code;
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }
    }

    /**
     * 借款人配偶等
     */
    public static class Contacts implements Serializable
    {
        public Type    type;
        public Contact contact;

        @Override
        public String toString()
        {
            return "Contacts{" +
                    "type=" + type +
                    ", contact=" + contact +
                    '}';
        }

        public Contact getContact()
        {
            return contact;
        }

        public void setContact(Contact contact)
        {
            this.contact = contact;
        }

        public Type getType()
        {
            return type;
        }

        public void setType(Type type)
        {
            this.type = type;
        }
    }

    public static class Type implements Serializable
    {
        public String id;
        public String name;

        @Override
        public String toString()
        {
            return "Type{" +
                    "id='" + id + '\'' +
                    ", name='" + name + '\'' +
                    '}';
        }

        public String getId()
        {
            return id;
        }

        public void setId(String id)
        {
            this.id = id;
        }

        public String getName()
        {
            return name;
        }

        public void setName(String name)
        {
            this.name = name;
        }
    }

    public static class Contact implements Serializable
    {
        public String cellphone;
        public String idNumber;
        public String fullName;
        public String maritalStatus;


        @Override
        public String toString() {
            return "Contact{" +
                    "cellphone='" + cellphone + '\'' +
                    ", idNumber='" + idNumber + '\'' +
                    ", fullName='" + fullName + '\'' +
                    ", maritalStatus='" + maritalStatus + '\'' +
                    '}';
        }

        public String getCellphone()
        {
            return cellphone;
        }

        public void setCellphone(String cellphone)
        {
            this.cellphone = cellphone;
        }

        public String getIdNumber()
        {
            return idNumber;
        }

        public void setIdNumber(String idNumber)
        {
            this.idNumber = idNumber;
        }

        public String getFullName()
        {
            return fullName;
        }

        public void setFullName(String fullName)
        {
            this.fullName = fullName;
        }

        public String getMaritalStatus() {
            return maritalStatus;
        }

        public void setMaritalStatus(String maritalStatus) {
            this.maritalStatus = maritalStatus;
        }
    }
}
